package com.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.domain.PracticalAchievementFile;
import com.demo.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface FileDao extends BaseMapper<PracticalAchievementFile> {
    @Select("select * from "
            + "tb_file where f_id = #{fid}")
    public PracticalAchievementFile findFileByFileId(Integer fid);

    @Select("select * from tb_file where "
            + "f_pa_id = #{paid}")
    public List<PracticalAchievementFile> findFileByPaId(long paid);

}
